package JavaCore;

public class Data8 {
	String name;
	int kor;
	int mat;
	int eng;
	int comp;
	int tot;
	double avg;
	String grade;
	int ranking;
	
	public Data8(String n, int k, int m, int e, int c){
		this.name=n;
		this.kor=k;
		this.mat=m;
		this.eng=e;
		this.comp=c;
		
		tot=kor+mat+eng+comp;
		avg=tot/4.0;
	}

}
